package com.bjc.chapter13;

public class StringExer {

    String str = new String("good");
    char[] ch = {'t', 'e', 's', 't'};
    int num = 10;

    public void change(String str, char[] ch,int num) {
        str = "test ok";
        ch[0] = 'b';
        num = 20;
    }

    public static void main(String[] args) {
        StringExer ex = new StringExer();
        ex.change(ex.str, ex.ch,ex.num);
        System.out.println(ex.str); //good
        System.out.println(ex.ch); //best
        System.out.println(ex.num); //10
    }
}
